import React from 'react';
import { observer } from 'mobx-react';
import { WeaBrowser } from 'ecCom';

@observer
export default class BrowserNew extends React.Component<any, any>{

    onChange = (ids, names, datas) => {
        const {onChange,fieldtype,fieldid,isChild} = this.props;
        onChange(ids, names, datas,fieldtype,fieldid,isChild);
    }

    render() {
        return <WeaBrowser 
            {...this.props}
            onChange={this.onChange}
        ></WeaBrowser>
    }
}